package com.example.listmoudle.sliper

import com.android.baselibrary.base.BaseAdapter
import com.bumptech.glide.Glide
import com.example.listmoudle.R
import com.example.listmoudle.databinding.ListLayoutSliperBinding

/**
 * @author: Mr.You
 * @create: 2022-12-15 13:58
 * @description:
 **/
class SliperAdapter:BaseAdapter<String,ListLayoutSliperBinding>() {
    override fun getItemLayoutId(): Int {
        return R.layout.list_layout_sliper
    }

    override fun covert(binding: ListLayoutSliperBinding, t: String, position: Int) {
           Glide.with(binding.image.context).load(t).into(binding.image)
           binding.tvView.text = "${mData.size-position}/${mData.size}"
    }
}